home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Disc to the Future 2
/
Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin
/
MAC
/
THINKC
/
4_0
/
SNDLIST-
/
SNDLIST.H
< prev
next >
Wrap
Text File
|
1988-11-10
|
2KB
|
91 lines
/*
Sound lister
"SndList.h"
*/
#ifndef _DialogMgr_
#include <DialogMgr.h>
#endif
#ifndef _ListMgr_
#include <ListMgr.h>
#endif
#ifndef _OSUtil_
#include <OSUtil.h>
#endif
#define APPL 128 /* ID of application 'ICN#' */
#define maxOpenDocuments 5
#define rMenuBar 128
#define mApple 128
#define iAbout 1
#define mFile 129
#define iOpen 1
#define iClose 2
#define iQuit 4
#define mEdit 130
#define iUndo 1
#define iCut 3
#define iCopy 4
#define iPaste 5
#define iClear 6
#define AboutDialog 128 /* About dialog */
#define AboutOk 1
#define AboutText 2
#define AboutVers 3
#define AboutHeap 4
#define AboutIcon 5
#define rDialog 129 /* 'DLOG' resource id */
#define iPlay 1 /* "Play" button */
#define iList 2 /* Scrollable list (user item) */
#define iLevel 3 /* Volume level scrool bar (cntrl item) */
#define rMessage 130 /* Message dialog */
#define mOld 128 /* 'STR ': old system */
#define mSorry 129 /* 'STR ': no 'snd ' resources */
#define rEdit 131 /* Edit sound dialog */
#define eCancel 1 /* "Cancel" button */
#define eOk 2 /* "OK" button */
#define ePlay 3 /* "Play" button */
#define eRate 4 /* Sampling rate field */
#define eNote 5 /* Base note field */
#define eName 6 /* Name field */
#define eType 7 /* Type of 'snd ' resource */
#define eCalc1 8 /* Calculate rate=f(base) */
#define eCalc2 9 /* Calculate rate=f(base) */
#define ListCursor 128 /* Curser used when in list */
#define HiSnd "128" /* 'snd ' when started */
#define ByeSnd "129" /* 'snd ' when quit */
#define AboutSnd "130" /* 'snd ' when about... */
typedef struct {
DialogRecord window; /* Title is file name */
ListHandle list; /* Scrolling list */
short volume; /* Volume reference number */
} DocumentRecord, *DocumentPeek;
#define HiWrd(aLong) (((aLong) >> 16) & 0xFFFF)
#define LoWrd(aLong) ((aLong) & 0xFFFF;
#ifdef GLOBALS
SysEnvRec gMac;
Boolean gHasWaitNextEvent;
Boolean gInBackground;
short gNumDocuments;
unsigned char EmptyStr[] = "";
Rect Bounds;
#else
extern SysEnvRec gMac;
extern Boolean gHasWaitNextEvent;
extern Boolean gInBackground;
extern short gNumDocuments;
extern unsigned char EmptyStr[];
extern Rect Bounds;
#endif